package com.wngz.school.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wngz.school.entity.Stu;
import com.wngz.school.mapper.StudentMapper;
import com.wngz.school.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.Map;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Stu> implements StudentService {
    @Autowired
    private StudentMapper studentMapper;


    @Override
    public Page<Stu> query(Integer pageNumber, Integer pageSize, Map<String, Object> params) {
        Page<Stu> page = new Page<>(pageNumber, pageSize);

        Page<Stu> computerPage = studentMapper.selectPage(page, null);
        return computerPage;
    }
}
